/**
 * 
 */
package org.codesketch.birch.common;

/**
 * Generic based wrapper for the AWS responses
 * @author Quirino Brizi
 *
 */
public class BirchResponse<T> {
	private final Boolean transitionValid;
	private final T response;
	
	/**
	 * Create a new {@link BirchResponse} object
	 * @param transitionValid
	 * @param response
	 */
	public BirchResponse(Boolean transitionValid, T response) {
		this.transitionValid = transitionValid;
		this.response = response;
	}

	/**
	 * Gets the transition status.
	 * @return true if the current was a valid transition, false otherwise.
	 */
	public final Boolean getTransitionValid() {
		return transitionValid;
	}

	/**
	 * Gets the AWS response
	 * @return the response from AWS
	 */
	public final T getResponse() {
		return response;
	}
}
